package com.foreverwin.mes.production.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 物料耗用
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-03-11
 */
@TableName("Z_MATERIAL_CONSUMPTION")
public class MaterialConsumption extends Model<MaterialConsumption> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
   @TableId(value = "HANDLE", type = IdType.INPUT)
   private String handle;
    /**
     * 站点
     */
   @TableField("SITE")
   private String site;
    /**
     * 工单编号
     */
   @TableField("SHOP_ORDER")
   private String shopOrder;
    /**
     * SFC
     */
   @TableField("SFC")
   private String sfc;
    /**
     * 物料编号
     */
   @TableField("ITEM")
   private String item;
    /**
     * 组件料号
     */
   @TableField("COMPONENT")
   private String component;
    /**
     * 库存编号
     */
   @TableField("INVENTORY_ID")
   private String inventoryId;
    /**
     * 收货批次
     */
   @TableField("BATCH_NUMBER")
   private String batchNumber;
    /**
     * 线边仓
     */
   @TableField("STORAGE_LOCATION")
   private String storageLocation;
    /**
     * 数量
     */
   @TableField("QTY")
   private Double qty;
    /**
     * 是否发送ERP
     */
   @TableField("SEND_ERP")
   private String sendErp;
    /**
     * 创建日期
     */
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;
    /**
     * 更新日期
     */
   @TableField("UPDATED_DATE_TIME")
   private Date updatedDateTime;
    /**
     * 创建人员
     */
   @TableField("CREATE_USER_BO")
   private String createUserBo;
    /**
     * 更新人员
     */
   @TableField("UPDATE_USER_BO")
   private String updateUserBo;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getShopOrder() {
      return shopOrder;
   }

   public void setShopOrder(String shopOrder) {
      this.shopOrder = shopOrder;
   }

   public String getSfc() {
      return sfc;
   }

   public void setSfc(String sfc) {
      this.sfc = sfc;
   }

   public String getItem() {
      return item;
   }

   public void setItem(String item) {
      this.item = item;
   }

   public String getComponent() {
      return component;
   }

   public void setComponent(String component) {
      this.component = component;
   }

   public String getInventoryId() {
      return inventoryId;
   }

   public void setInventoryId(String inventoryId) {
      this.inventoryId = inventoryId;
   }

   public String getBatchNumber() {
      return batchNumber;
   }

   public void setBatchNumber(String batchNumber) {
      this.batchNumber = batchNumber;
   }

   public String getStorageLocation() {
      return storageLocation;
   }

   public void setStorageLocation(String storageLocation) {
      this.storageLocation = storageLocation;
   }

   public Double getQty() {
      return qty;
   }

   public void setQty(Double qty) {
      this.qty = qty;
   }

   public String getSendErp() {
      return sendErp;
   }

   public void setSendErp(String sendErp) {
      this.sendErp = sendErp;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public Date getUpdatedDateTime() {
      return updatedDateTime;
   }

   public void setUpdatedDateTime(Date updatedDateTime) {
      this.updatedDateTime = updatedDateTime;
   }

   public String getCreateUserBo() {
      return createUserBo;
   }

   public void setCreateUserBo(String createUserBo) {
      this.createUserBo = createUserBo;
   }

   public String getUpdateUserBo() {
      return updateUserBo;
   }

   public void setUpdateUserBo(String updateUserBo) {
      this.updateUserBo = updateUserBo;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String SHOP_ORDER = "SHOP_ORDER";

   public static final String SFC = "SFC";

   public static final String ITEM = "ITEM";

   public static final String COMPONENT = "COMPONENT";

   public static final String INVENTORY_ID = "INVENTORY_ID";

   public static final String BATCH_NUMBER = "BATCH_NUMBER";

   public static final String STORAGE_LOCATION = "STORAGE_LOCATION";

   public static final String QTY = "QTY";

   public static final String SEND_ERP = "SEND_ERP";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   public static final String UPDATED_DATE_TIME = "UPDATED_DATE_TIME";

   public static final String CREATE_USER_BO = "CREATE_USER_BO";

   public static final String UPDATE_USER_BO = "UPDATE_USER_BO";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "MaterialConsumption{" +
         "handle = " + handle +
         ", site = " + site +
         ", shopOrder = " + shopOrder +
         ", sfc = " + sfc +
         ", item = " + item +
         ", component = " + component +
         ", inventoryId = " + inventoryId +
         ", batchNumber = " + batchNumber +
         ", storageLocation = " + storageLocation +
         ", qty = " + qty +
         ", sendErp = " + sendErp +
         ", createdDateTime = " + createdDateTime +
         ", updatedDateTime = " + updatedDateTime +
         ", createUserBo = " + createUserBo +
         ", updateUserBo = " + updateUserBo +
         "}";
   }
}